﻿using Server.Constant;
using Server.Framework.Message;
using Server.Model;

namespace Server.Message.Request
{
    /// <summary>
    /// Author: Leil
    /// Description: 请求角色列表
    /// CreateTime: 2020/5/13 10:07:46
    /// </summary>
    [MessageAttr(MessageId.REQUEST_LOGIN)]
    class LoginReq : RequestBaseMessage
    {
        public string Username { get; set; }

        public string Password { get; set; }

        public override void Deserialize(byte[] buffer)
        {
            RequestLogin msg = RequestLogin.Parser.ParseFrom(buffer);
            Username = msg.Username;
            Password = msg.Password;
        }
    }
}
